How can I pass a variable to a function every time I assign it to a different value in javascript

join shbcf.ru